package com.huangsm.concurrence.countdown;

import lombok.AllArgsConstructor;

/**
 * @author huang
 * @PACKAGE_NAME com.huangsm.concurrence.countdown
 * @PROJECT_NAME concurrence
 * @date 2019/2/14
 */
@AllArgsConstructor
public class Waiter implements Runnable {
    java.util.concurrent.CountDownLatch latch = null;
    @Override
    public void run() {
            try {
                latch.await();
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        System.out.println("Waiter Released");
    }
}
